from pathlib import Path
import os

def get_image_file_list(img_dir):
    if not os.path.isdir(img_dir):
        raise IsADirectoryError
    path_p = Path(img_dir)
    # exts = ["*.jpg", "*.pdf", "*.JPG", "*.png"]
    exts = ["*.MP4", "*.mp4", "*.avi"]
    result = list()
    for ext in exts:
        imgs = path_p.rglob(ext)
        for img in imgs:
            if Path.is_file(img):
                result.append(str(img))
    return result